package com.lw.kotlin_mvvm_master.view.webview

import android.os.Bundle
import android.webkit.JavascriptInterface
import com.lw.common.utils.SystemUtil.systemModel
import com.lw.common.webview.BaseLoadWebActivity

class WebViewActivity : BaseLoadWebActivity() {

    override fun getUrl(): String {
        return "https://www.baidu.com/"
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mAgentWeb?.jsInterfaceHolder?.addJavaObject("android", this)
    }

    @JavascriptInterface
    fun getNative(): String {
        return systemModel
    }
}
